package com.ticket.common.string;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;

public class SimpleJson {


    public static String[] stringToJson(String str,String content,String date,String address) {
        try {
            JSONObject jsonObj = (JSONObject) (new JSONParser().parse(str));
            String keyContent =  jsonObj.get(content).toString();
            String keyDate =  jsonObj.get(date).toString();
            String keyAddress = jsonObj.get(address).toString();
            String [] arr= {keyContent,keyDate,keyAddress};
            return arr;
        } catch (ParseException e) {
            e.printStackTrace();
            return null;
        }
    }
    public static void main(String []ages){
    }
}